package com.test.service;

import com.test.dao.EmployeeDao;
import com.test.dao.EmployeeDaoImpl;
import com.test.model.Employee;

import java.util.List;

public class EmployeeServiceImpl  implements EmployeeService {

    private EmployeeDao  employeeDao =  new EmployeeDaoImpl();

    /**
     * 查询list
     * @return
     * @throws Exception
     */
    @Override
    public List<Employee> selectEmployeeList(String name,String  salary,String  salary2) throws Exception{
        return employeeDao.selctEmployeeList(name,salary,salary2);
    }

    @Override
    public int add(Employee employee) throws Exception {
       return employeeDao.insert(employee);
    }
}
